home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / DTS Sample Code / Macintosh Sample Code / Monthly Releases (Compressed) / MacDTS.Sample.Code.90.05.sit / SC.011.GetZoneList / Makefile < prev    next >
Encoding:
Makefile  |  1990-05-01  |  4.0 KB  |  6 lines  |  [TEXT/MPS ]

  1. MakefileTEXTMPS 
  2. `¨¢c°œ¢c°œÅÅqÂ#     ------------------------------------------------------------------------------
  3. #
  4. #    Apple Macintosh Developer Technical Support
  5. #
  6. #    AppleTalk GetZoneList Sample Application
  7. #
  8. #    CGetZoneList & PGetZoneList
  9. #
  10. #    Makefile    -    Make Source
  11. #
  12. #    Copyright © 1988-1990 Apple Computer, Inc.
  13. #    All rights reserved.
  14. #
  15. #    Versions:    1.0                    November 1988
  16. #                1.1                    October 1989
  17. #                1.2                    May 1990
  18. #
  19. #    Components:    GetZoneList.c        May 1, 1990
  20. #                GetZoneList.p        May 1, 1990
  21. #                GetZoneList.r        May 1, 1990
  22. #                MakeFile            May 1, 1990
  23. #                UFailure.a            November 1, 1988
  24. #                UFailure.h            November 1, 1988
  25. #                UFailure.inc1.p        November 1, 1988
  26. #                UFailure.p            November 1, 1988
  27. #
  28. #    GetZoneList is a sample application that uses
  29. #    AppleTalk ATP and ZIP to obtain a list of zones
  30. #    on an AppleTalk internet.
  31. #
  32. #    GetZoneList also demonstrates using a signal, or
  33. #    failure-catching mechanism to recover from error
  34. #    situations.  Since C does not allow nested procedures
  35. #    a la Pascal, a few modifications were made to incorporate
  36. #    the failure handling and keep this sample fairly close in
  37. #    design to the Pascal sample.
  38. #    (Gee, thanks a lot M2 for using nested procs. - pvh)
  39. #
  40. #    GetZoneList is based on DTS Sample.c. For more
  41. #    description and explanation of the non-example
  42. #    specific areas of this application, please refer to
  43. #    either Sample.p or TESample.c.
  44. #
  45. #    ------------------------------------------------------------------------------
  46.  
  47. #SymOptions = -sym on                 # sure, why not use symbols.  we've got all day.
  48.  
  49. #    ------------------------------------------------------------------------------
  50. #
  51. #    Build Rules for CGetZoneList
  52. #
  53. #    ------------------------------------------------------------------------------
  54.  
  55. COptions = -r {SymOptions}             # turn on strict prototyping (-r option)
  56.  
  57. # Use these libraries for MPW 3.0/3.1
  58. CLibs            =    "{CLibraries}"CRuntime.o ∂
  59.                     "{CLibraries}"CInterface.o ∂
  60.                     "{Libraries}"Interface.o
  61.  
  62. # Use these libraries for MPW 3.2 or later
  63. #CLibs            =    "{Libraries}"Runtime.o ∂
  64. #                    "{Libraries}"Interface.o
  65.  
  66. CObjs            =     GetZoneList.c.o ∂
  67.                     UFailure.p.o ∂
  68.                     UFailure.a.o ∂
  69.                     {CLibs}
  70.  
  71. GetZoneList.c.o        ƒƒ    GetZoneList.c Makefile UFailure.h
  72.  
  73. CGetZoneList        ƒƒ    {CObjs} Makefile
  74.     Link {SymOptions} -mf -o {Targ} {CObjs}
  75.     SetFile {Targ} -t APPL -c '????' -a B
  76.  
  77. CGetZoneList        ƒƒ    'GetZoneList.r' Makefile
  78.     Rez -rd -o {Targ} 'GetZoneList.r' -append
  79.  
  80. UFailure.h            ƒ
  81.     IF NOT `Exists UFailure.h`
  82.         Echo "CGetZoneList needs the “UFailure.h” header from SC.012.Signals."
  83.         Exit 1
  84.     END
  85.  
  86. #    ------------------------------------------------------------------------------
  87. #
  88. #    Build Rules for PGetZoneList
  89. #
  90. #    ------------------------------------------------------------------------------
  91.  
  92. POptions = {SymOptions}
  93.  
  94. PObjs            =    GetZoneList.p.o ∂
  95.                     UFailure.p.o ∂
  96.                     UFailure.a.o ∂
  97.                     "{Libraries}"Runtime.o ∂
  98.                     "{Libraries}"Interface.o ∂
  99.                     "{PLibraries}"PasLib.o
  100.  
  101. GetZoneList.p.o        ƒƒ    GetZoneList.p Makefile UFailure.p
  102.  
  103. PGetZoneList        ƒƒ    {PObjs} Makefile
  104.     Link {SymOptions} -mf -o {Targ} {PObjs}
  105.     SetFile {Targ} -t APPL -c '????' -a B
  106.  
  107. PGetZoneList        ƒƒ    GetZoneList.r Makefile
  108.     Rez -rd -o {Targ} GetZoneList.r -append
  109.  
  110. #    ------------------------------------------------------------------------------
  111. #
  112. #    Build Rules for UFailure units
  113. #
  114. #    ------------------------------------------------------------------------------
  115.  
  116. UFailure.p.o        ƒƒ UFailure.p UFailure.inc1.p MakeFile
  117.  
  118. UFailure.a.o        ƒƒ UFailure.a MakeFile
  119. nn>
  120. |LQ AppleTalk ImagewriterwMakefilekTEXTMPS ¿TEXTMPS ¿¢dUX¨iy%
  121. |LQ ImagewriterwPRESBWRT!¥`
  122. öπˇ∫ù≤$@ù≤$@H    Monaco,x757xå
  123. *”]*”]¢ciè*”]*”]nn>L±D  >MPSR
  124. ÌˇˇˇˇLNï8